package pojo;

import lombok.Data;

@Data
public class Exercise {
    private String question;      // 问题描述，如 "5 + 3 = ?"
    private int correctAnswer;    // 正确答案
    private int userAnswer;       // 用户答案
    private boolean isCorrect;    // 是否正确

    public Exercise(String question,  int correctAnswer) {
        this.question = question;
        this.correctAnswer = correctAnswer;
    }
}
